import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'
import { useWindowsStore } from './stores/windows'

//css
import '@/assets/css/index.css'

import { createVuetify } from 'vuetify'
import * as components from 'vuetify/components'
import * as directives from 'vuetify/directives'
import { pl, zhHans } from 'vuetify/locale'

const vuetify = createVuetify({
  components,
  directives,
  locale: {
    locale: 'zhHans',
    fallback: 'sv',
    messages: { zhHans, pl },
  },
})
createApp(App).use(createPinia()).use(router).use(vuetify).mount('#app')

useWindowsStore().refreshWindowsList()
